package com.farmer.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.LinkedList;
import java.util.List;

@TableName(value ="menu")
@Data
public class Menu {
    @TableId
    private Integer mid;

    private String mname;

    private String murl;

    private Integer parentid;

    private String isparent;

    private String mdesc;

    @TableField(exist = false)
    private List<Menu> children = new LinkedList<>();

    private static final long serialVersionUID = 1L;
}
